import FormWrap from '@/components/formWrap/index.vue';
import DatePicker from '@/components/formField/datePicker/index.vue';
import ImageUpload from '@/components/formField/imageUpload/index.vue';
import InputCaptcheField from '@/components/formField/inputCaptcheField/index.vue';
import InputField from '@/components/formField/inputField/index.vue';
import InputNumberField from '@/components/formField/inputNumberField/index.vue';
import NumberBoxField from '@/components/formField/numberBoxField/index.vue';
import MultipleSelect from '@/components/formField/multipleSelect/index.vue';
import SingleSelect from '@/components/formField/singleSelect/index.vue';
import Button from '@/components/button/index.vue';
import Modal from '@/components/modal/index.vue';
import Tag from '@/components/tag/index.vue';

const components = [
    FormWrap,
    DatePicker,
    ImageUpload,
    InputCaptcheField,
    InputField,
    InputNumberField,
    NumberBoxField,
    MultipleSelect,
    SingleSelect,
    Button,
    Modal,
    Tag,
];

export default {
    install(Vue) {
        components.forEach((component) => {
            Vue.component(component.name, component);
        });
    },
};